package utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class propertiesUtil {

    public static Map<String,Object> getVariable() throws IOException {
        Map<String,Object> map=new HashMap<>();
        String fileName= "variableConfig.properties";
        InputStream is;
        Properties pro=new Properties();
        is=propertiesUtil.class.getClassLoader().getResourceAsStream(fileName);
        pro.load(is);
        for (Object o : pro.keySet()) {
            map.put((String) o,pro.getProperty((String) o));
        }
        return map;
    }

}
